package com.zyg.pojo;

import java.io.Serializable;

public class Course implements Serializable {
    private Integer id;
    private String cname;
    private Integer stuId;

    public Course() {
    }

    public Course(Integer id, String cname, Integer stuId) {
        this.id = id;
        this.cname = cname;
        this.stuId = stuId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", cname='" + cname + '\'' +
                ", stuId=" + stuId +
                '}';
    }
}
